package com.cx.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum SysTemEnum {

    PLATE(0, "平台"),
    BUSINESS(1, "商户"),
    CUSTOMER(2, "app");
    private Integer value;

    private String desc;

    public static SysTemEnum getEnum(Integer value) {
        for (SysTemEnum sysTemEnum : SysTemEnum.values()) {
            if (sysTemEnum.getValue().equals(value)) {
                return sysTemEnum;
            }
        }
        return null;
    }


}
